<template>
	<view class="SeckillConfirmation">
		<view class="SeckillConfirmation_header">
			<view @click="backReturn" class="SeckillConfirmation_header_back">
				<image src="../../../static/home/back_White.png" mode="widthFix"></image>
				<view class="SeckillConfirmation_header_back_title">
					订单确认
				</view>
			</view>
		</view>
		<view class="SeckillConfirmation_odercontnet">
			<view class="SeckillConfirmation_address">
				<view class="SeckillConfirmation_address_left">
					<view class="SeckillConfirmation_address_left_top">
						<view class="SeckillConfirmation_address_left_topName">
							高先生
						</view>
						<view class="SeckillConfirmation_address_left_top_iphone">
							18953665365
						</view>
						<view class="AddressManagement_list_top_left_default">
							默认
						</view>
					</view>
					<view class="SeckillConfirmation_address_left_bottom">
						山东省潍坊市潍城区XXXX
					</view>
				</view>
				<view class="SeckillConfirmation_address_right">
					<image src="../../../static/home/right.png" mode="widthFix"></image>
				</view>
			</view>

			<view class="SeckillConfirmation_message">
				<view class="SeckillConfirmation_message_left">
					<image src="../../../static/home/miaoshatu.jpeg" mode=""></image>
				</view>
				<view class="SeckillConfirmation_message_right">
					<view class="SeckillConfirmation_message_right_title">
						高端四件套
					</view>
					<view class="SeckillConfirmation_message_right_text">
						被套：200cmX230cm，床单：230cmX250cm，枕套：45cmX74cm
					</view>
					<view class="SeckillConfirmation_message_right_price">
						<text class="SeckillConfirmation_message_right_price_guige">￥</text>
						<view class="SeckillConfirmation_message_right_priceNum">
							888.00
						</view>
					</view>
				</view>
			</view>

		</view>
		<view class="SeckillConfirmation_information">
			<view class="SeckillConfirmation_information_title">
				卖家信息
			</view>
			<view class="SeckillConfirmation_information_content">
				<view class="SeckillConfirmation_information_content_list">
					<view class="SeckillConfirmation_information_content_list_left">
						姓名：
					</view>
					<view class="SeckillConfirmation_information_content_list_right">
						复制
					</view>
				</view>
				<view class="SeckillConfirmation_information_content_list">
					<view class="SeckillConfirmation_information_content_list_left">
						卡号：
					</view>
					<view class="SeckillConfirmation_information_content_list_right">
						复制
					</view>
				</view>
				<view class="SeckillConfirmation_information_content_list">
					<view class="SeckillConfirmation_information_content_list_left">
						开户行：
					</view>
					<view class="SeckillConfirmation_information_content_list_right">
						复制
					</view>
				</view>
				<view class="SeckillConfirmation_information_content_Code">
					<view class="SeckillConfirmation_information_content_Code_list">
						<image src="../../../static/home/miaoshatu.jpeg" mode=""></image>
						<view class="SeckillConfirmation_information_content_Code_list_text">
							支付宝收款码
						</view>
					</view>
					<view class="SeckillConfirmation_information_content_Code_list">
						<image src="../../../static/home/miaoshatu.jpeg" mode=""></image>
						<view class="SeckillConfirmation_information_content_Code_list_text">
							微信收款码
						</view>
					</view>
				</view>
			</view>
		</view>

		<view class="SeckillConfirmation_screenshot">
			<view class="SeckillConfirmation_screenshot_title">
				打款截屏
			</view>
			<view class="SeckillConfirmation_screenshot_content">
				<u-upload width="140upx" height="140upx" :previewFullImageTrue="true" :fileList="fileList1"
					@afterRead="afterRead" @delete="deletePic" name="1">
					<view class="SeckillConfirmation_screenshot_content_add">
						<image src="../../../static/home/+.png"></image>
					</view>
				</u-upload>
			</view>
		</view>
		<view class="SeckillConfirmation_bottonBox">
			<button class="SeckillConfirmation_bottonBox_button">
				我已付款
			</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				fileList1: []
			}
		},
		methods: {
			deletePic(event) {
				this[`fileList${event.name}`].splice(event.index, 1)
			},
			async afterRead(event) {
				// 当设置 mutiple 为 true 时, file 为数组格式，否则为对象格式
				let lists = [].concat(event.file)
				let fileListLen = this[`fileList${event.name}`].length
				lists.map((item) => {
					this[`fileList${event.name}`].push({
						...item,
					})
				})
				// for (let i = 0; i < lists.length; i++) {
				// 	const result = await this.uploadFilePromise(lists[i].thumb)
				// 	let item = this[`fileList${event.name}`][fileListLen]
				// 	this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {
				// 		status: 'success',
				// 		message: '',
				// 		url: result
				// 	}))
				// 	fileListLen++
				// }
			},
			backReturn() {
				uni.navigateBack({});
			}
		}
	}
</script>
<style>
	page {
		background-color: #E5E7E9;
	}
</style>
<style lang="scss" scoped>
	.SeckillConfirmation {
		padding-bottom: 160upx;

		.SeckillConfirmation_header {
			padding: 20upx;
			padding-top: calc(var(--status-bar-height) + 20upx);
			background-image: linear-gradient(to right, #FE3D47, #FC773D);
			display: flex;

			.SeckillConfirmation_header_back {

				display: flex;
				align-items: center;

				image {
					width: 18upx;
					margin: 0 30upx;
				}

				.SeckillConfirmation_header_back_title {
					font-size: 34upx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #FFFFFF;
					line-height: 48upx;
				}
			}
		}

		.SeckillConfirmation_odercontnet {
			padding: 20upx;

			.SeckillConfirmation_address {
				display: flex;
				background: #FFFFFF;
				border-radius: 12upx;
				padding: 44upx 50upx;
				align-items: center;
				justify-content: space-between;

				.SeckillConfirmation_address_left {
					.SeckillConfirmation_address_left_top {
						display: flex;
						align-items: flex-end;
						position: relative;

						.SeckillConfirmation_address_left_topName {
							width: 140upx;
							overflow: hidden;
							text-overflow: ellipsis;
							white-space: nowrap;
							font-size: 34upx;
							font-family: PingFangSC-Regular, PingFang SC;
							font-weight: 400;
							color: rgba(0, 0, 0, 0.8);
							line-height: 48upx;
						}

						.SeckillConfirmation_address_left_top_iphone {
							font-size: 28upx;
							font-family: PingFangSC-Regular, PingFang SC;
							font-weight: 400;
							color: rgba(0, 0, 0, 0.54);
							margin-left: 20upx;
							line-height: 40upx;
						}

						.AddressManagement_list_top_left_default {
							position: absolute;
							left: calc(100% + 10upx);
							top: 0;
							width: 60upx;
							height: 32upx;
							background: #FFBE53;
							border-radius: 8upx;
							text-align: center;
							font-size: 22upx;
							font-family: PingFangSC-Regular, PingFang SC;
							font-weight: 400;
							color: #000000;
							line-height: 32upx;
						}

					}

					.SeckillConfirmation_address_left_bottom {
						font-size: 22upx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: rgba(0, 0, 0, 0.84);
						line-height: 32upx;
						overflow: hidden;
						text-overflow: ellipsis;
						white-space: nowrap;
					}
				}

				.SeckillConfirmation_address_right {
					image {
						width: 12upx
					}
				}

			}

			.SeckillConfirmation_message {
				margin-top: 20upx;
				background: #FFFFFF;
				border-radius: 12upx;
				padding: 28upx 40upx 22upx 46upx;
				display: flex;

				.SeckillConfirmation_message_left {
					font-size: 0;
					border-radius: 8upx;
					overflow: hidden;

					image {
						width: 162upx;
						height: 162upx;
					}
				}

				.SeckillConfirmation_message_right {
					width: calc(100% - 162upx - 50upx);
					margin-left: 50upx;

					.SeckillConfirmation_message_right_title {
						font-size: 28upx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: rgba(0, 0, 0, 0.89);
						line-height: 40upx;

						overflow: hidden;
						text-overflow: ellipsis;
						white-space: nowrap;

					}

					.SeckillConfirmation_message_right_text {
						font-size: 22upx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: rgba(0, 0, 0, 0.5);
						line-height: 32upx;
						text-overflow: -o-ellipsis-lastline;
						overflow: hidden;
						text-overflow: ellipsis;
						display: -webkit-box;
						-webkit-line-clamp: 2;
						line-clamp: 2;
						-webkit-box-orient: vertical;
					}

					.SeckillConfirmation_message_right_price {
						display: flex;
						align-items: center;

						.SeckillConfirmation_message_right_price_guige {
							font-size: 24upx;
							color: #ED2525;
						}

						.SeckillConfirmation_message_right_priceNum {
							font-size: 50upx;
							font-family: PingFangSC-Regular, PingFang SC;
							font-weight: 400;
							color: #ED2525;
							line-height: 72upx;
						}
					}
				}
			}

		}

		.SeckillConfirmation_information {
			.SeckillConfirmation_information_title {
				padding: 0 32upx;
				font-size: 34upx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: rgba(0, 0, 0, 0.9);
				line-height: 48upx;
			}

			.SeckillConfirmation_information_content {
				background-color: #FFFFFF;
				padding: 40upx;
				margin-top: 6upx;

				.SeckillConfirmation_information_content_list {
					display: flex;
					justify-content: space-between;
					align-items: center;
					padding: 8upx 0;
					border-bottom: 2upx solid rgba(0, 0, 0, 0.05);
					margin-top: 20upx;

					&:first-child {
						margin: 0;
					}

					.SeckillConfirmation_information_content_list_left {
						font-size: 22upx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: rgba(0, 0, 0, 0.5);
						line-height: 32upx;
					}

					.SeckillConfirmation_information_content_list_right {
						width: 76upx;
						height: 32upx;
						background: #FFBE53;
						border-radius: 16upx;
						font-size: 22upx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #000000;
						line-height: 32upx;
						text-align: center;
					}
				}

				.SeckillConfirmation_information_content_Code {
					display: flex;

					.SeckillConfirmation_information_content_Code_list {
						width: 50%;
						text-align: center;
						padding-top: 50upx;

						image {
							width: 200upx;
							height: 200upx;
						}

						.SeckillConfirmation_information_content_Code_list_text {
							font-size: 22upx;
							margin-top: 10upx;
							font-family: PingFangSC-Regular, PingFang SC;
							font-weight: 400;
							color: rgba(0, 0, 0, 0.9);
							line-height: 32upx;
						}
					}
				}
			}
		}

		.SeckillConfirmation_screenshot {
			margin-top: 16upx;

			.SeckillConfirmation_screenshot_title {
				padding: 0 32upx;
				font-size: 34upx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: rgba(0, 0, 0, 0.9);
				line-height: 48upx;
			}

			.SeckillConfirmation_screenshot_content {
				padding: 0 38upx;
				margin-top: 22upx;

				/deep/ .u-upload__wrap {
					width: 100%;
					flex-wrap: wrap;

					.u-upload__wrap__preview {
						margin: 10upx;
					}
				}

				.SeckillConfirmation_screenshot_content_add {
					width: 140upx;
					height: 140upx;
					background-color: #D8D8D8;
					display: flex;
					align-items: center;
					justify-content: center;
					margin: 10upx;

					image {
						width: 72upx;
						height: 72upx;
					}
				}
			}
		}

		.SeckillConfirmation_bottonBox {
			position: fixed;
			bottom: 0;
			width: 100%;
			left: 0;
			height: 140upx;
			background-color: #FFFFFF;
			display: flex;
			justify-content: center;
			align-items: center;

			.SeckillConfirmation_bottonBox_button {
				background-color: #ED2525;
				width: 338upx;
				height: 90upx;
				background: #ED2525;
				border-radius: 46upx;
				font-size: 32upx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #FFFFFF;
				line-height: 44upx;
				display: flex;
				justify-content: center;
				align-items: center;

				&::after {
					content: '';
					display: none;
				}
			}
		}

	}
</style>
